TfrxDataSet.OnNext Strange behaviour

Hello,

I noticed that no matter how many records I have the TfrxDataSet.OnNext repeats twice the last record (it fires twice).

The problem is that in OnNext I create a unique name as

Shape := TfrxShapeView.Create(Band);
Shape .Name := 'Shape_'+MyQuery.FieldByName('my_autoinc').AsString;


... and I get an error that an object with this name already exists.
I debugged it and it fires the last record twice.

What can I do? The Report.DoublePass is false.

Thank you very much

Comments

  • edited 7:43AM

    No comments? >
  • gpigpi
    edited 7:43AM
    No test project - no comments
    Did you try to detrermine last record in TfrxDataSet.OnNext event?
  • edited 7:43AM
    gpi wrote: »
    No test project - no comments
    Did you try to detrermine last record in TfrxDataSet.OnNext event?

    Hello,


    I attached a simple project.
    If you click on the button you will see that one record is repeated twice. (by ShowMessage).
  • gpigpi
    edited 7:43AM
    Try to check for last record in OnNext event

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.